clear all
set more off

log using 03_analysis.log
use 03_externality.dta

*************Table 7=====================

xi: reg baidu_ln rain_ln i.type i.year i.pro_id

predict yhat

* second stage for Discipline

xi: reg discipline yhat i.type i.year i.pro_id 


* second stage for Respond within one month
xi: probit  chuliwithin yhat  i.type i.year i.pro_id


log close


